package dto

type RegisterParam struct {
	Username   string `gorm:"column:username;type:varchar(255);not null" json:"username" binding:"required"`
	Password   string `gorm:"column:password;type:varchar(255);not null" json:"password" binding:"required,gte=6,lte=40"`
	RePassword string `json:"re-password" binding:"required"`
	Sex        bool   `gorm:"column:sex;type:tinyint(1)" json:"sex" binding:"required"`
	Phone      string `gorm:"column:phone;type:varchar(255)" json:"phone" binding:"required,len=11"`
	Email      string `gorm:"column:email;type:varchar(255)" json:"email" binding:"required,email"`
}
